<!doctype html>
<%@page import="com.cn.ccp.util.Contants"%>
<%@ page contentType="text/html; charset=utf-8" %>
<%
 request.setCharacterEncoding("utf-8"); // 这句话很重要，否则遇到中文就出错~
%>
<jsp:directive.page import="com.cn.ccp.bean.UserBean" />
<%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="https://ajax4jsf.dev.java.net/ajax" prefix="a4j"%>
<html>
<f:view>
<f:loadBundle var="messages" basename="messages"></f:loadBundle>
<head>
<META content="text/html; charset=gb2312" http-equiv=Content-Type>
<title><h:outputText value="#{messages['system_title']}" /></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">

    <!-- styles -->
    <link href="<%=request.getContextPath()%>/css/bootstrap.css" rel="stylesheet">
    <link href="<%=request.getContextPath()%>/css/bootstrap-responsive.css" rel="stylesheet">
    <link href="<%=request.getContextPath()%>/css/custom.css" rel="stylesheet">
    <!--[if lt IE 9]>
      <script src="../../../js/html5.js"></script>
    <![endif]-->
    <!-- Fav and touch icons -->
  <link rel="apple-touch-icon-precomposed" sizes="144x144" href="<%=request.getContextPath()%>/images/icon/apple-touch-icon-144-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="<%=request.getContextPath()%>/images/icon/apple-touch-icon-114-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="<%=request.getContextPath()%>/images/icon/apple-touch-icon-72-precomposed.png">
<link rel="apple-touch-icon-precomposed" href="<%=request.getContextPath()%>/images/icon/apple-touch-icon-57-precomposed.png">
<link rel="shortcut icon" href="<%=request.getContextPath()%>/images/icon/favicon.png">
<link href="<%=request.getContextPath()%>/css/upload/default.css" rel="stylesheet" type="text/css" />
<link href="<%=request.getContextPath()%>/css/upload/uploadify.css" rel="stylesheet" type="text/css" />
<script src="<%=request.getContextPath()%>/js/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/upload/swfobject.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/upload/jquery.uploadify.v2.0.1.js"></script>
    <%
    int uid = 0 ;
    String fileType = (String)session.getAttribute(Contants.FILE_TYPE_FILE);
		UserBean users = (UserBean) session.getAttribute("userBean");
			if ((users == null) || (users.getUserName().equals(""))) {
	}else{
		uid = users.getId();
	}
	%>
	<%
		String path = request.getContextPath();
		String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
	%>
	 
</head>
<body class="bg-white" style="overflow-x:hidden;">
<a id="viewDiv"></a>
		<h:form id="formid" styleClass="form-horizontal"
			style="margin-left: 20px;margin-right: 20px">
			
			<div class="row page-head">
				<h3 class="page-title">
					<i class="n-icon-selection  n-icon-black"></i><h:outputText value="#{messages['course_page_course']}"/>&nbsp;&gt;&nbsp;<b><h:outputText value="#{messages['course_page_course_content_change_name']}" /></b>
				</h3>
			</div>
				<h:inputHidden value="#{courseAction.courseContentBean.id}"></h:inputHidden>
				
                <fieldset>
					<legend>基本信息</legend>
					<div class="form-white">
						
						<div class="control-group">
							<label class="control-label" for=""><h:outputText value="#{messages['course_page_course_content_old_name']}" /></label>
							<div class="controls">
								<h:outputText value="#{courseAction.courseContentBean.section_file_name}" >
								</h:outputText>
							</div>
						</div>
						
						<div class="control-group">
							<label class="control-label" for=""><h:outputText value="#{messages['course_page_course_content_new_name']}" /></label>
							<div class="controls">
								<h:inputText id="chapter_title2" value="#{courseAction.courseContentBean.section_file_name}">
								</h:inputText>
								<span class="help-inline"><h:message for="chapter_title2" style="color:red" /></span>
							</div>
						</div>
						
						 
					</div>
				</fieldset>
	            <div class="form-actions">
					<h:commandButton id="submitButton" value="#{messages['btn_submit']}" action="#{courseAction.changeSectionFileName}" styleClass="btn btn-primary" onclick="return submitCheck();"  rendered="#{courseAction.hiddenButton}"/>
					<h:commandButton value="#{messages['btn_cancel']}"  styleClass="btn" action="main"/>
	            </div>
		</h:form>
		
		<script src="<%=request.getContextPath()%>/js/bootstrap.js"></script>
		</script>
</body>
</f:view>
</html>
